![]() |
Macros: Referencing sequences through labelsWhat are macros?Macros are simply control assignments that are given unique labels (names), and put in the [MACROS] section of the script file. The label is then can be used in the [CONFIG] section to reference the assignment.If a macro has a well-chosen label, then the assigned macro label helps to make the control action clear to someone reading the script file. A point needs to be made that control assignments can be made with or without the use of macro labels. There's no performance advantage using one method or the other in setting up the script file -- choosing which method to use is more a matter of style. Entry:The right side of SENDS or IS assignments can be easily made into a macro:
"some_label" = some_assignment where some_label is any text label in double-quotes, and the some_assignment is the right side of a SENDS or IS statement. The label is used to replace the right side of the assignment in the [CONFIG] section. See a sample game script file without macros See the same game script file with macros
|